#pragma once  
#ifndef _PQUEUE_H  
#define _PQUEUE_H  
#include "huffman.h"  
#define MAX_SZ 256  
#define TYPE htNode *  
  
typedef struct _pQueueNode{  
    TYPE val;  
    unsigned int priority;  
    struct _pQueueNode *next;  
}pQueueNode;  
  
typedef struct _pQueue{  
    unsigned int size;  
    pQueueNode *first;  
}pQueue;  
  
void initPQueue(pQueue **queue);  
void addPQueue(pQueue **queue, TYPE val, unsigned int priority);  
TYPE getQueue(pQueue **queue);  
#endif  